package org.vehicle.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.vehicle.dao.CheckRecordMapper;
import org.vehicle.entity.CheckRecord;
import org.vehicle.service.CheckRecordService;
import org.vehicle.service.base.BaseServiceImpl;

@Service
public class CheckRecordServiceImpl extends BaseServiceImpl<CheckRecord, Long> implements CheckRecordService{
	@Autowired
	private CheckRecordMapper checkRecordMapper;
	
	@Override
	public CheckRecord findCheckRecordByVehicleLicense(Map<String, Object> map) {
		
		return checkRecordMapper.findCheckRecordByVehicleLicense(map);
	}

	@Override
	public CheckRecord findCheckRecordByCheckCode(Map<String, Object> map) {
		
		return checkRecordMapper.findCheckRecordByCheckCode(map);
	}

	@Override
	public List<CheckRecord> findCheckRecordListByVehicleLicense(Map<String, Object> map) {
		
		return checkRecordMapper.findCheckRecordListByVehicleLicense(map);
	}

	@Override
	public void deleteByVehicleLicense(Map<String, Object> map) {
		
		checkRecordMapper.deleteByVehicleLicense(map);
	}
    
}